package com.im.linving.imapidal;


import com.im.linving.RegisterBody;
import com.im.linving.ResForRt;
import com.im.linving.network.api.ApiRetrofitClient;

import rx.Observable;

/**
 * @Author linyong
 * @Date 2016/10/31
 * @Time 22:05
 */
public class UserDal {

    /**
     *
     * @param appKey
     * @param nonce
     * @param curTime
     * @param checkSum
     * @param accid
     * @param props
     * @param token
     * @return
     */
    public Observable<ResForRt<Object>> register(String appKey, String nonce,
                                                 String curTime, String checkSum, String accid, String props, String token) {
        return ApiRetrofitClient.builder().getServerApi().userRegister(appKey, nonce, curTime, checkSum, accid, props, token);
    }

    public Observable<ResForRt<Object>> register(String appKey, String nonce,
                                                 String curTime, String checkSum, RegisterBody body) {
        return ApiRetrofitClient.builder().getServerApi().userRegister(appKey, nonce, curTime, checkSum, body);
    }
}
